/**
 * 首页上主题控制
 * 2017-1-9
 * wanshiyu
 */  
/**存储主题配置*/    
function thems_save(){
var collapsemenuValue=0;
var fixednavbarValue=0;
var boxedlayoutValue=0;
	 
if($("#collapsemenu").is(':checked')){
	collapsemenuValue =1;
}
if($("#fixednavbar").is(':checked')){
	fixednavbarValue =1; 
}
if($("#boxedlayout").is(':checked')){
	boxedlayoutValue =1; 
}
var skinValue=0;
if($("body").hasClass("skin-1")){
	skinValue =1; 
}else if($("body").hasClass("skin-3")){
	skinValue =3;
}else if($("body").hasClass("skin-4")){
	skinValue =4;
}else if($("body").hasClass("skin-5")){
	skinValue =5;
}else if($("body").hasClass("skin-6")){
	skinValue =6;
}
	 
 $.ajax({
		type:'post',
		async : false,
        cache : false,
		url:path+'/sys/member/saveInfoSetting',
		data:{'collapsemenuValue':collapsemenuValue,"fixednavbarValue":fixednavbarValue,"boxedlayoutValue":boxedlayoutValue,"skinValue":skinValue},
		dataType:'json',
		success:function(data) {
		}
	});
}
    
/**收起左侧菜单*/  
function collapsemenu_(){$("#collapsemenu").is(":checked")?($("body").addClass("mini-navbar"),SmoothlyMenu(),localStorageSupport&&localStorage.setItem("collapse_menu","on")):($("body").removeClass("mini-navbar"),SmoothlyMenu(),localStorageSupport&&localStorage.setItem("collapse_menu","off"))}
/**固定顶部*/
function fixednavbar_(){$("#fixednavbar").is(":checked")?($(".navbar-static-top").removeClass("navbar-static-top").addClass("navbar-fixed-top"),$("body").removeClass("boxed-layout"),$("body").addClass("fixed-nav"),$("#boxedlayout").prop("checked",!1),localStorageSupport&&localStorage.setItem("boxedlayout","off"),localStorageSupport&&localStorage.setItem("fixednavbar","on")):($(".navbar-fixed-top").removeClass("navbar-fixed-top").addClass("navbar-static-top"),$("body").removeClass("fixed-nav"),localStorageSupport&&localStorage.setItem("fixednavbar","off"))}
/**固定宽度*/
function boxedlayout_(){$("#boxedlayout").is(":checked")?($("body").addClass("boxed-layout"),$("#fixednavbar").prop("checked",!1),$(".navbar-fixed-top").removeClass("navbar-fixed-top").addClass("navbar-static-top"),$("body").removeClass("fixed-nav"),localStorageSupport&&localStorage.setItem("fixednavbar","off"),localStorageSupport&&localStorage.setItem("boxedlayout","on")):($("body").removeClass("boxed-layout"),localStorageSupport&&localStorage.setItem("boxedlayout","off"))}
/**默认皮肤*/
function s_skin_0(){return $("body").removeClass("skin-1"),
    $("body").removeClass("skin-2"),
    $("body").removeClass("skin-3"),
    $("body").removeClass("skin-4"),
    $("body").removeClass("skin-5"),
    $("body").removeClass("skin-6"),
    !1}
/**蓝色主题*/
function s_skin_1(){return $("body").removeClass("skin-2"),
    $("body").removeClass("skin-3"),
    $("body").removeClass("skin-4"),
    $("body").removeClass("skin-5"),
    $("body").removeClass("skin-6"),
    $("body").addClass("skin-1"),
    !1}
/**黄色/紫色主题*/
function s_skin_3(){$("body").removeClass("skin-1"),
    $("body").removeClass("skin-2"),
    $("body").removeClass("skin-4"),
    $("body").removeClass("skin-5"),
    $("body").removeClass("skin-6"),
    $("body").addClass("skin-3"),
    !1}
/**青色主题*/
function s_skin_4(){return $("body").removeClass("skin-1"),
    $("body").removeClass("skin-2"),
    $("body").removeClass("skin-3"),
    $("body").removeClass("skin-5"),
    $("body").removeClass("skin-6"),
    $("body").addClass("skin-4"),
    !1}
/**灰色主题*/
function s_skin_5(){return $("body").removeClass("skin-1"),
    $("body").removeClass("skin-2"),
    $("body").removeClass("skin-3"),
    $("body").removeClass("skin-4"),
    $("body").removeClass("skin-6"),
    $("body").addClass("skin-5"),
    !1}
/**绿色主题*/
function s_skin_6(){return $("body").removeClass("skin-1"),
    $("body").removeClass("skin-2"),
    $("body").removeClass("skin-3"),
    $("body").removeClass("skin-4"),
    $("body").removeClass("skin-5"),
    $("body").addClass("skin-6"),
    !1}